package net.mlike.openssp.server.entity.business;

import net.mlike.openssp.server.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * Created by wallellen@hotmail.com on 5/31/18.
 */
@Entity
@Table(name = "t_bus_account")
public class Account extends BaseEntity {
    public enum Status {
        ENABLED, DISABLED
    }

    private String name;
    private String password;
    private String salt;
    @Enumerated(EnumType.STRING)
    private Status status;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}
